import common from "../common";
import constants from "../constants";

const baseExchangeRateApi = {
    findBaseExchangeRates: (data, success, error) => {
        return common.requestData(constants.API_FindBaseExchangeRates, data, success, error);
    },
    batchSaveBaseExchangeRate: (data, success, error) => {
        return common.requestData(constants.API_BatchSaveBaseExchangeRate, data, success, error);
    },
    batchDelBaseExchangeRate: (data, success, error) => {
        return common.requestData(constants.API_BatchDelBaseExchangeRate, data, success, error);
    },
    getDefaultBaseExchangeRate: (data, success, error) => {
        return common.requestData(constants.API_GetDefaultBaseExchangeRate, data, success, error);
    },
};

export default baseExchangeRateApi;
